/*
 * Part of knowledge engineering (ke) course work, 2010/11
 */
package se.bth.ke.firstfriend.dto;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nico
 */
@XmlRootElement
public class SearchResult {

    @XmlElement
    private String query;
    
    @XmlElement
    private List<ArticleInfo> results;

    public SearchResult() {}
    
    public SearchResult(String query, List<ArticleInfo> results) {
        this.query = query;
        this.results = results;
    }

    /**
     * @return the query
     */
    public String getQuery() {
        return query;
    }

    /**
     * @return the results
     */
    public List<ArticleInfo> getResults() {
        return results;
    }
}